﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Collections.ObjectModel;
using WcfServiceAfvanding.Code;

namespace WcfServiceAfvanding
{
    public static class Constants
    {
        public const string URI = "net.tcp://localhost:12345/";

    }
    [Serializable]
    public class KanalDTO
    {
        public double Vandstand { get; set; }
    }

    [ServiceContract]
    public interface IAfvanding
    {
        [OperationContract]
        void OpretPumpestation(string netværksadresse, string ipAdresse, int portnummer, string vandstand);

        [OperationContract]
        void OpretPumpe(double vandkapacitet, bool kører, int pumpestationsId);

        [OperationContract]
        void RetPumpestation(string netværksadresse, string ipAdresse, int portnummer, string vandstand);

        [OperationContract]
        void RetPumpe(double vandkapacitet, bool kører);

        [OperationContract]
        void SletPumpestation(int pumpestationsId);

        [OperationContract]
        void SletPumpe(int pumpeId);

        [OperationContract]
        ObservableCollection<Pumpestation> MinePumpestationer();

        [OperationContract]
        ObservableCollection<Pumpe> MinePumper(int pumpestationsId);

        [OperationContract]
        void StartPumpe(int pumpeId);

        [OperationContract]
        void StopPumpe(int pumpeId);
    }
}
